//
//  FinancialManagViewController.m
//  DaMaoMall
//
//  Created by HXHL-wally on 16/7/25.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#import "FinancialManagViewController.h"
#import "ScreeningViewController.h"

@interface FinancialManagViewController ()

@end

@implementation FinancialManagViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titleLabel.text = @"我的支付";
    [self.rightBtn setTitle:@"筛选" forState:UIControlStateNormal];
    [self.rightBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self.rightBtn addTarget:self action:@selector(rightFiltrate) forControlEvents:UIControlEventTouchUpInside];
    [self.navigationBarView addSubview:self.rightBtn];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - 右侧的筛选
- (void)rightFiltrate{
    
    ScreeningViewController * screeningVC = [[ScreeningViewController alloc]init];
    //这两句必须有
    self.definesPresentationContext = YES; //self is presenting view controller
    screeningVC.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    /** 设置半透明度 */
    screeningVC.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:.6];
    [self presentViewController:screeningVC animated:NO completion:nil];
}
@end
